﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SystemSettingList.ascx.cs" Inherits="DMS.Web.Modules.SystemManagement.Organization.SystemSettingList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="diy" %>
<asp:UpdatePanel ID="up_UserList" runat="server">
    <ContentTemplate>
        <%--搜索栏--%>
        <div id="dvSearch" runat="server" class="search">
            <!----------- 查询信息 ------------------>
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="ico">
                        <a href="javascript:changeView('1')" style="display:none;">
                            <img src="/themes/default/ico_have.gif" id="ico_1" border="0"></a>
                    </td>
                    <td class="form">
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <th>
                                    <nobr>
                                        参数项：
                                    </nobr>
                                </th>
                                <td>
                                    <nobr>
                                        <asp:TextBox ID="txtParaName" runat="server" Width="80px"></asp:TextBox>
                                    </nobr>
                                </td>
                                <th>
                                    <nobr>
                                        参数代码：
                                    </nobr>
                                </th>
                                <td>
                                    <nobr>
                                        <asp:TextBox ID="txtParamCode" runat="server" Width="80px"></asp:TextBox>
                                    </nobr>
                                </td>
                                <th>
                                    <nobr>
                                        参数类型：
                                    </nobr>
                                </th>
                                <td>
                                    <asp:DropDownList ID="ddlParamTypeList" runat="server">
                                        <asp:ListItem Value="" Selected="True">全部参数</asp:ListItem>
                                        <asp:ListItem Value="0">系统参数</asp:ListItem>
                                        <asp:ListItem Value="1">成员参数</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <th>
                                </th>
                                <td class="button">
                                    <nobr>
                                        <asp:LinkButton ID="btnQuery" runat="server" OnClick="btnQuery_Click"><img src="../../../Themes/Default/btn_search.gif" /></asp:LinkButton>
                                    </nobr>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <%--数据列表--%>
        <asp:DataGrid ID="dgParamList" runat="server" AutoGenerateColumns="false" Width="100%"
            CssClass="dg_borderstyle" onitemdatabound="dgParamList_ItemDataBound">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle CssClass="dg_itemstyle" />
            <AlternatingItemStyle CssClass="dg_alternatingitemstyle" />
            <Columns>
                <asp:TemplateColumn HeaderText="类型">
                    <ItemStyle HorizontalAlign="Center" Width="75px" />
                    <ItemTemplate>
                        <asp:Label ID="lblParamType" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="参数项">
                    <ItemStyle HorizontalAlign="Left" Width="150px" />
                    <ItemTemplate>
                        <div title="<%#Eval("Name") %>" style="overflow: hidden; text-overflow: ellipsis; width: 150px;">
                            <nobr>
                                <%#Eval("Name")%>
                            </nobr>
                        </div>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="参数代码">
                <ItemStyle HorizontalAlign="Center" Width="150px" />
                    <ItemTemplate>
                        <div title="<%#Eval("ID") %>" style="overflow: hidden; text-overflow: ellipsis; width: 150px;">
                            <nobr>
                                <%#Eval("ID")%>
                            </nobr>
                        </div>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="参数值">
                    <ItemTemplate>
                        <%#Eval("Value")%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                
                <asp:TemplateColumn HeaderText="操作">
                    <ItemStyle Width="50px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <nobr>
                            <a href="javascript:" onclick="javascript:OpenSystemConfigForm(this, 'Modify', '<%#Eval("ID")%>')">修改</a>
                        </nobr>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
        <div id="dvPager" class="PagerHolder">
        <diy:AspNetPager ID="pager" runat="server" AlwaysShow="true" OnPageChanged="pager_PageChanged"
            Width="100%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox" TextBeforePageIndexBox="转到"
            TextAfterPageIndexBox="页" ShowCustomInfoSection="Left" CustomInfoHTML="总数：%RecordCount%，共 %PageCount% 页，当前为第%CurrentPageIndex%页"
            HorizontalAlign="right" FirstPageText="首页" PrevPageText="上页" NextPageText="下页"
            LastPageText="末页" CssClass="dg_pagestyle" PageSize="50">
        </diy:AspNetPager>
        </div>
        <div id="dvEmpty" runat="server" class="EmptyMsg" visible="false">
            没有查询到相应的配置项信息。
        </div>
    </ContentTemplate>
</asp:UpdatePanel>